package com.lyf.design.learn.designmodel.strategy.sortsample.demo1;

/**
 * @AUTHOR LYF
 * @DATE 2022/6/2
 * @VERSION 1.0
 * @DESC
 */
public class Main {
    public static void main(String[] args) {
        Sorter<Cat> sorter= new Sorter<>();
        Cat[]cats = new Cat[4];
        cats[0]=new Cat(2F);
        cats[1]=new Cat(1F);
        cats[2]=new Cat(3F);
        cats[3]=new Cat(0F);
        cats[3]=new Cat(5F);
        sorter.sort(cats);
    }
}
